﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;
using Newtonsoft.Json;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012D5 RID: 4821
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SyncClientResVersionCsReq : IMessage<SyncClientResVersionCsReq>, IMessage, IEquatable<SyncClientResVersionCsReq>, IDeepCloneable<SyncClientResVersionCsReq>, IBufferMessage
	{
		// Token: 0x17003CEF RID: 15599
		// (get) Token: 0x0600D7FC RID: 55292 RVA: 0x002436D0 File O·	ffset: 0x002418D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SyncClientResVersionCsReq> Parser
		{
			get
			{
				return SyncClientResVersionCsReq._parser;
			}
		}

		// Token: 0x17003CF0 RID: 15600
		// (get) Token: 0x0600D7FD RID: 55293 RVA: 0x002436D7 File Offset: 0x002418D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SyncClientResVersionCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003CF1 RID: 15601
		// (get) Token: 0x0600D7FE RID: 55294 RVA: 0x002436E9 File Offset: 0x002418E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SyncClientResVersionCsReq.Descriptor;
			}
		}

		// Token: 0x0600D7FF RID: 55295 RVA: 0x002436F0 File Offset: 0x002418F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncClientResVersionCsReq()
		{
		}

		// Token: 0x0600D800 RID: 55296 RVA: 0x002436F8 File Offset: 0x002418F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncClientResVersionCsReq(SyncClientResVersionCsReq other) : this()
		{
			this.resVersion_ = other.resVersion_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D801 RID: 55297 RVA: 0x0024371D File Offset: 0x0024191D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SyncClientResVersionCsReq Clone()
		{
			return new SyncClientResVersionCsReq(this);
		}

		// Token: 0x17003CF2 RID: 15602
		// (get) Token: 0x0600D802 RID: 55298 RVA: 0x00243725 File Offset: 0x00241925
		// (set) Token: 0x0600D803 RID: 55299 RVA: 0x0024372D File Offset: 0x0024192D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ResVersion
		{
			get
			{
				return this.resVersion_;
			}
			set
			{
				this.resVersion_ = value;
			}
		}

		// Token: 0x0600D804 RID: 55300 RVA: 0x00243736 File Offset: 0x00241936
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			Console.WriteLine(JsonConvert.SerializeObject(other));
			return this.Equals(other as SyncClientResVersionCsReq);
		}

		// Token: 0x0600D805 RID: 55301 RVA: 0x00243744 File Offset: 0x00241944
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SyncClientResVersionCsReq other)
		{
			return other != null && (other == this || (this.ResVersion == other.ResVersion && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D806 RID: 55302 RVA: 0x00243774 File Offset: 0x00241974
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ResVersion != 0U)
			{
				num ^= this.ResVersion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D807 RID: 55303 RVA: 0x002437B3 File Offset: 0x002419B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D808 RID: 55304 RVA: 0x002437BB File Offset: 0x002419BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D809 RID: 55305 RVA: 0x002437C4 File Offset: 0x002419C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ResVersion != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.ResVersion);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D80A RID: 55306 RVA: 0x002437F8 File Offset: 0x002419F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ResVersion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ResVersion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D80B RID: 55307 RVA: 0x00243836 File Offset: 0x00241A36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SyncClientResVersionCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ResVersion != 0U)
			{
				this.ResVersion = other.ResVersion;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D80C RID: 55308 RVA: 0x00243867 File Offset: 0x00241A67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D80D RID: 55309 RVA: 0x00243870 File Offset: 0x00241A70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.ResVersion = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400560B RID: 22027
		private static readonly MessageParser<SyncClientResVersionCsReq> _parser = new MessageParser<SyncClientResVersionCsReq>(() => new SyncClientResVersionCsReq());

		// Token: 0x0400560C RID: 22028
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400560D RID: 22029
		public const int ResVersionFieldNumber = 1;

		// Token: 0x0400560E RID: 22030
		private uint resVersion_;
	}
}
